async function foo() {
    console.log(1);
    let a = await 100;
    console.log(a);
    console.log(2);
}

async function main() {
    console.log(0);
    await foo();
    console.log(3)
}

main().then(() => {
    console.log("exit")
});